﻿using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
//using OrchardCore.ContentFields.Fields;
using Jint.Native.TypedArray;
using OrchardCore.ContentFields.Fields;
using OrchardCore.ContentManagement;
using OrchardCore.Media.Fields;

namespace Ruitu.Edu.TrainingDemo.Models
{
    public class PersonPart : ContentPart
    {
        public string Name { get; set; } = string.Empty;

        public int Age { get; set; }

        public string Sex { get; set; } = string.Empty;

        public Handedness Handedness { get; set; }

        public DateTime? BirthDateUtc { get; set; }

        public TextField Biography { get; set; } = new() /* new TextField() */;

        public MediaField Avatar { get; set; } = new() /* new MediaField() */;
    }

    public enum Handedness
    {
        Left,
        Right
    }
}
